package com.hhxy;

import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

/**
 * @auther:Lu Yao
 * @date:2022/2/26
 * @description:
 **/
@SpringBootApplication(exclude ={ org.activiti.spring.boot.SecurityAutoConfiguration.class,
        SecurityAutoConfiguration.class})
@EnableEurekaClient
@EnableFeignClients
@EnableHystrix
@EnableWebMvc
//@EnableScheduling
@MapperScan("com.hhxy.login.schedule")
public class LoginApplication {
    public static void main(String[] args) {
        SpringApplication.run(LoginApplication.class,args);

       /*
         // jasypt加密 https://blog.csdn.net/alinyua/article/details/82721419
       try {
            new SpringApplicationBuilder().environment(new StandardEncryptableEnvironment()).sources(LoginStarter.class).run(args);
        } catch (Exception e) {
            e.printStackTrace();
        }*/
    }
}